import assign from 'object-assign';
import {observable, action} from 'mobx';
import axios from "axios";

class CurStore {
    @observable state = {
    }
    @action getData(){
        axios.get('').then(response => {
            console.log(response)
        }).catch(error => {
            console.error(error);
        }).then(() => {
            console.log("always executed");
        });
    }
}
let StoreObj = new CurStore();
export default StoreObj;
export function GetStore(){
    return StoreObj;
};
export function ResetStore(){
    StoreObj = new CurStore();
    return StoreObj;
};
// export const CurStore = CurStore;
